﻿using System.Collections.Generic;
using DataAccessLayer;

namespace DataAccessLayer
{
    public sealed class BossFactory : BossFactoryBase
    {
        public override BossEnemy ConstructBoss(int hp, int power, int speed, EditorRect sourceRect, List<EditorRect> colRects)
        {
            return new BossEnemy
                       {
                           Hp = hp,
                           Power = power,
                           Speed = speed,
                           SourceRect = sourceRect,
                           CollisionRectangles = colRects
                       };
        }

        public override SynergicBossEnemy ConstructBoss(int hp, int power, int speed, EditorRect sourceRect, List<EditorRect> colRects, List<Enemy> enemyParts)
        {
            return new SynergicBossEnemy
                        {
                            Hp = hp,
                            Power = power,
                            Speed = speed,
                            SourceRect = sourceRect,
                            CollisionRectangles = colRects,
                            EnemyParts = enemyParts
                        };
        }
    }
}